﻿using SolrNet.Attributes;

namespace OMR.Crawler.Core
{
    public struct CrawlWork
    {
        public string EntryPoint { get; set; }

        public int DeepCount { get; set; }

        public byte[] Content { get; set; }

        public string MimeType { get; set; }

        public string Title { get; set; }
    }

    public class CrawlDocument
    {
        [SolrField]
        public string Location { get; set; }

        [SolrField]
        public string Content { get; set; }

        [SolrField]
        public string ContentType { get; set; }

        [SolrField]
        public long Size { get; set; }

        [SolrField]
        public string Title { get; set; }
    }
}
